package com.pactera.madp.cp.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pactera.madp.cp.api.entity.taskpub.TaskPubEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TaskPubCustMapper extends BaseMapper<TaskPubEntity>{

    List<TaskPubEntity>  getOverdueTasks();

    /**
     * 获取满足发放红包条件的任务列表
     * @param wxUserId
     * @param taskType
     * @return
     */
    List<TaskPubEntity> getTaskListForRedpack(@Param("wxUserId") String wxUserId, @Param("taskType") Integer taskType);
}
